﻿<Page
    x:Class="SimpleAudioPlayer.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SimpleAudioPlayer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <MediaElement x:Name="_media" AudioCategory="BackgroundCapableMedia" CurrentStateChanged="MusicChanged"/>
        <Button Content="Select Audio File..." FontSize="30" Margin="10"
                Click="OnSelected"/>
        <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="10,30">
            <Button Content="Play" FontSize="40" Margin="8"
                    Click="OnPlay"/>
            <Button Content="Pause" FontSize="40" Margin="8"
                    Click="OnPause"/>
            <Button Content="Stop" FontSize="40" Margin="8"
                    Click="OnStop"/>
        </StackPanel>
    </Grid>
</Page>
